<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9"/>
<title>NGUI: SpringPosition Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI
   &#160;<span id="projectnumber">3.11.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_spring_position.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="class_spring_position-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SpringPosition Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Spring-like motion &ndash; the farther away the object is from the target, the stronger the pull.  
 <a href="class_spring_position.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for SpringPosition:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_spring_position.png" usemap="#SpringPosition_map" alt=""/>
  <map id="SpringPosition_map" name="SpringPosition_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af1cac32ac27358291f5652e38c4fbd80"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af1cac32ac27358291f5652e38c4fbd80"></a>
delegate void&#160;</td><td class="memItemRight" valign="bottom"><b>OnFinished</b> ()</td></tr>
<tr class="separator:af1cac32ac27358291f5652e38c4fbd80"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ad235af70da6d4f8f1c0de4325583d39a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_spring_position.html">SpringPosition</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_spring_position.html#ad235af70da6d4f8f1c0de4325583d39a">Begin</a> (GameObject go, Vector3 pos, float <a class="el" href="class_spring_position.html#ab200b5f4ceb49a09d99d1c7700b1c880">strength</a>)</td></tr>
<tr class="memdesc:ad235af70da6d4f8f1c0de4325583d39a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the tweening process.  <a href="#ad235af70da6d4f8f1c0de4325583d39a">More...</a><br /></td></tr>
<tr class="separator:ad235af70da6d4f8f1c0de4325583d39a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a5517bd8e3e3c20f11615198f8d6bf72a"><td class="memItemLeft" align="right" valign="top">Vector3&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_spring_position.html#a5517bd8e3e3c20f11615198f8d6bf72a">target</a> = Vector3.zero</td></tr>
<tr class="memdesc:a5517bd8e3e3c20f11615198f8d6bf72a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Target position to tween to.  <a href="#a5517bd8e3e3c20f11615198f8d6bf72a">More...</a><br /></td></tr>
<tr class="separator:a5517bd8e3e3c20f11615198f8d6bf72a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab200b5f4ceb49a09d99d1c7700b1c880"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_spring_position.html#ab200b5f4ceb49a09d99d1c7700b1c880">strength</a> = 10f</td></tr>
<tr class="memdesc:ab200b5f4ceb49a09d99d1c7700b1c880"><td class="mdescLeft">&#160;</td><td class="mdescRight">Strength of the spring. The higher the value, the faster the movement.  <a href="#ab200b5f4ceb49a09d99d1c7700b1c880">More...</a><br /></td></tr>
<tr class="separator:ab200b5f4ceb49a09d99d1c7700b1c880"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52ff00a70136de5499769780a28a2447"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_spring_position.html#a52ff00a70136de5499769780a28a2447">worldSpace</a> = false</td></tr>
<tr class="memdesc:a52ff00a70136de5499769780a28a2447"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is the calculation done in world space or local space?  <a href="#a52ff00a70136de5499769780a28a2447">More...</a><br /></td></tr>
<tr class="separator:a52ff00a70136de5499769780a28a2447"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96740a851144b764a6cef9ce5f5eeb2a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_spring_position.html#a96740a851144b764a6cef9ce5f5eeb2a">ignoreTimeScale</a> = false</td></tr>
<tr class="memdesc:a96740a851144b764a6cef9ce5f5eeb2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the time scale will be ignored. Generally UI components should set it to 'true'.  <a href="#a96740a851144b764a6cef9ce5f5eeb2a">More...</a><br /></td></tr>
<tr class="separator:a96740a851144b764a6cef9ce5f5eeb2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b327703c8db15bc06666bfad4a02d83"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_spring_position.html#a6b327703c8db15bc06666bfad4a02d83">updateScrollView</a> = false</td></tr>
<tr class="memdesc:a6b327703c8db15bc06666bfad4a02d83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the parent scroll view will be updated as the object moves.  <a href="#a6b327703c8db15bc06666bfad4a02d83">More...</a><br /></td></tr>
<tr class="separator:a6b327703c8db15bc06666bfad4a02d83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe8e570b16ffa6cc20f99b97de82f817"><td class="memItemLeft" align="right" valign="top">OnFinished&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_spring_position.html#abe8e570b16ffa6cc20f99b97de82f817">onFinished</a></td></tr>
<tr class="memdesc:abe8e570b16ffa6cc20f99b97de82f817"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delegate to trigger when the spring finishes.  <a href="#abe8e570b16ffa6cc20f99b97de82f817">More...</a><br /></td></tr>
<tr class="separator:abe8e570b16ffa6cc20f99b97de82f817"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09381c8e24ab24d545ee382ffe619ef9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09381c8e24ab24d545ee382ffe619ef9"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>callWhenFinished</b></td></tr>
<tr class="separator:a09381c8e24ab24d545ee382ffe619ef9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ad71286b448b0f83590acea5bfd6731a0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad71286b448b0f83590acea5bfd6731a0"></a>
static <a class="el" href="class_spring_position.html">SpringPosition</a>&#160;</td><td class="memItemRight" valign="bottom"><b>current</b></td></tr>
<tr class="separator:ad71286b448b0f83590acea5bfd6731a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Spring-like motion &ndash; the farther away the object is from the target, the stronger the pull. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ad235af70da6d4f8f1c0de4325583d39a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_spring_position.html">SpringPosition</a> SpringPosition.Begin </td>
          <td>(</td>
          <td class="paramtype">GameObject&#160;</td>
          <td class="paramname"><em>go</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vector3&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>strength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Start the tweening process. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a96740a851144b764a6cef9ce5f5eeb2a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SpringPosition.ignoreTimeScale = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the time scale will be ignored. Generally UI components should set it to 'true'. </p>

</div>
</div>
<a class="anchor" id="abe8e570b16ffa6cc20f99b97de82f817"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OnFinished SpringPosition.onFinished</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Delegate to trigger when the spring finishes. </p>

</div>
</div>
<a class="anchor" id="ab200b5f4ceb49a09d99d1c7700b1c880"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float SpringPosition.strength = 10f</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Strength of the spring. The higher the value, the faster the movement. </p>

</div>
</div>
<a class="anchor" id="a5517bd8e3e3c20f11615198f8d6bf72a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector3 SpringPosition.target = Vector3.zero</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Target position to tween to. </p>

</div>
</div>
<a class="anchor" id="a6b327703c8db15bc06666bfad4a02d83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SpringPosition.updateScrollView = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the parent scroll view will be updated as the object moves. </p>

</div>
</div>
<a class="anchor" id="a52ff00a70136de5499769780a28a2447"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SpringPosition.worldSpace = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Is the calculation done in world space or local space? </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/WorkDir/Unity3D_Work/taidou_arpg/Assets/NGUI/Scripts/Tweening/SpringPosition.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_spring_position.html">SpringPosition</a></li>
    <li class="footer">Generated on Sat Jan 4 2020 22:30:27 for NGUI by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9 </li>
  </ul>
</div>
</body>
</html>
